//框架初始化
NWqd.prototype.qd0 = function () {
	this.gen = this.cj(document.getElementsByTagName('html')[0])
	this.st = this.cj(document.getElementsByTagName('body')[0])
	this._qd0_gdtK();	//计算滚动条宽
	this._qd0_wys();	//生成外样式

	this.jzGJ.qd0();	//加载配置
	this.yq.zdy.qd0();  //自定义标签-按键标签
	this.znbd.qd0();	//智能表单
}

/**
 * 计算滚动条宽
 */
NWqd.prototype._qd0_gdtK = function () {
	let _linJD = document.createElement('div'),
		styles = { width: '30px', height: '30px', overflowY: 'scroll' },
		i;
	for (i in styles) _linJD.style[i] = styles[i];
	document.body.appendChild(_linJD);
	this.gdtK = _linJD.offsetWidth - _linJD.clientWidth;
	_linJD.remove();
}

/**
 * 生成外样式
 */
NWqd.prototype._qd0_wys = function () {
	let wysJD = document.createElement("style");
	let _SX = document.createAttribute('type'); //创建一个新的属性
	_SX.value = "text/css";
	wysJD.setAttributeNode(_SX); //加入属性到节点里


	let _wys = "buju {display: block;overflow: hidden;}";//布局
	_wys += "nr {display: block;overflow: auto;}"//内容
	_wys += "pz {display: none;}"//配置
	_wys += "aj {display: inline-block;}"//按键
	_wys += "znbd {display: block;overflow: hidden;}"//配置

	try {
		wysJD.appendChild(document.createTextNode(_wys));
	} catch (ex) {
		wysJD.styleSheet.cssText = _wys;//针对IE
	}
	let head = document.getElementsByTagName("head")[0];
	head.appendChild(wysJD);
}

